// 定义电脑类
class Computer {
    private String cpu;
    private int memory;

    public Computer(String cpu, int memory) {
        this.cpu = cpu;
        this.memory = memory;
    }

    @Override
    public String toString() {
        return "CPU: " + cpu + ", Memory: " + memory + "GB";
    }
}

// 定义学生类
class Student {
    private String name;
    private Computer computer;

    public Student(String name, Computer computer) {
        this.name = name;
        this.computer = computer;
    }

    public void displayComputerConfig() {
        System.out.println(name + "的电脑配置是: " + computer);
    }
}

public class Main {
    public static void main(String[] args) {
        // 实例化3台电脑
        Computer computer1 = new Computer("Intel i5", 16);
        Computer computer2 = new Computer("AMD Ryzen 7", 32);
        Computer computer3 = new Computer("Intel Core Xeon", 64);

        // 实例化3名学生，并分配电脑
        Student student1 = new Student("张三", computer1);
        Student student2 = new Student("李四", computer2);
        Student student3 = new Student("王五", computer3);

        // 输出每个学生的电脑配置
        student1.displayComputerConfig();
        student2.displayComputerConfig();
        student3.displayComputerConfig();
    }
}